package com.java2007.hotel.dao;

import com.java2007.hotel.pojo.Food;

import java.sql.SQLException;
import java.util.List;

/**
 * @author ghy
 * @version 1.0
 * @date 2021-01-22
 */
public interface FoodDao {

    int save(Food food) throws SQLException;


    Food findById(int id) throws SQLException;

    List<Food> findByPage(Integer start, Integer pageSize) throws SQLException;

    Long getCount() throws SQLException;

}
